package com.sdx.console.ncode.web.query;

import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam;
import java.util.Date;
import com.sdx.common.utils.Utils;
/**
 *N码批次管理查询
 */
public class RightNcodeBatchQuery extends PageParam {
    @Query(name = "批次Id", display = true)        
    private Integer batchId;
    @Query(name = "批次名称", display = true)        
    private String batchName;
    @Query(name = "对应权益角色", display = true)        
    private Integer roleId;
    @Query(name = "n码类型 2、体验卡，4、正式会员卡", display = true)        
    private Integer nType;
    @Query(name = "有效截止期", display = true)        
	private String expiredDate;
	private Date expiredDateStart;
	private Date expiredDateEnd;
    @Query(name = "有效天数", display = true)        
    private Integer validityDay;
    @Query(name = "生成n码标识 0、未生成   1、已生成", display = true)        
    private Integer status;
    public Integer getBatchId(){
        return  batchId;
    }
    public void setBatchId(Integer batchId ){
        this.batchId = batchId;
    }
    public String getBatchName(){
        return  batchName;
    }
    public void setBatchName(String batchName ){
        this.batchName = batchName;
    }
    public Integer getRoleId(){
        return  roleId;
    }
    public void setRoleId(Integer roleId ){
        this.roleId = roleId;
    }
    public Integer getNType(){
        return  nType;
    }
    public void setNType(Integer nType ){
        this.nType = nType;
    }
	public String getExpiredDate(){
		return  expiredDate;
	}
	public void setExpiredDate(String expiredDate ){
		this.expiredDate = expiredDate;
		Date[] timePair = Utils.parseQueryTime(expiredDate);
		if (timePair!=null && timePair[0]!=null) {
			this.expiredDateStart = timePair[0];
		}
		if (timePair!=null && timePair.length==2 && timePair[1]!=null) {
		this.expiredDateEnd = timePair[1];
		}

	}
	public Date getExpiredDateStart(){
		return  expiredDateStart;
	}
	public void setExpiredDateStart(Date expiredDateStart ){
		this.expiredDateStart = expiredDateStart;
	}
	public Date getExpiredDateEnd(){
		return  expiredDateEnd;
	}
	public void setExpiredDateEnd(Date expiredDateEnd ){
		this.expiredDateEnd = expiredDateEnd;
	}
    public Integer getValidityDay(){
        return  validityDay;
    }
    public void setValidityDay(Integer validityDay ){
        this.validityDay = validityDay;
    }
    public Integer getStatus(){
        return  status;
    }
    public void setStatus(Integer status ){
        this.status = status;
    }
 
}
